import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:easy_video/view/video/collect.dart';
import 'package:easy_video/view/video/history.dart';

import '../model/home_widget_model.dart';
import '../view/index/index.dart';

class HomeController extends GetxController {
  final List<HomeWidgetModel> body = [
    HomeWidgetModel(
      IndexView(),
      backgroundColor: Colors.white,
    ),
    HomeWidgetModel(
      HistoryView(),
      backgroundColor: Colors.white,
    ),
    HomeWidgetModel(
      CollectView(),
      backgroundColor: Colors.white,
    ),
  ];

  int currentBottomIndex = 0;

  void changeCurrentBottomIndex(index) {
    this.currentBottomIndex = index;
    this.update();
  }
}
